<script setup>
import {ref} from "vue";

let info = ref("Hello, Vue!")
/*let emits = defineEmits(['sendInfo']);


function sentEvent() {
  emits("sendInfo", info)
}*/
</script>

<script>
export default {
  name: "Child3",
  emits: ['sendInfo'],

}
</script>

<template>
  <button v-on:click="$emit('sendInfo', info)">发送</button>
</template>

<style scoped>

</style>